wayland: Fix south-west anchor rect calculation
authorJonas Ådahl <jadahl@gmail.com>
Mon, 12 Sep 2016 07:01:24 +0000 (15:01 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Wed, 14 Sep 2016 03:29:32 +0000 (11:29 +0800)
https://bugzilla.gnome.org/show_bug.cgi?id=771117

gdk/wayland/gdkwindow-wayland.c

index d8a6355e3fe055bcf16cdb71c767ef1202bae8c6..77fb4a8a255b8c3d66d57e4dada96814e429d73d 100644 (file)
@@ -1675,7 +1675,7 @@ calculate_popup_rect (GdkWindow    *window,
       break;
     case GDK_GRAVITY_SOUTH_WEST:
       x = anchor_rect.x;
-      y = anchor_rect.y + (anchor_rect.height / 2);
+      y = anchor_rect.y + anchor_rect.height;
       break;
     case GDK_GRAVITY_SOUTH:
       x = anchor_rect.x + (anchor_rect.width / 2);